package com.opencloud.iot.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础记录
 * @author yeyong
 */
@TableName("iot_sleep_observer")
public class IotSleepObserver implements Serializable {

    private static final long serialVersionUID= 5114452420210952135L;

    /**
     * 自增长ID
     */
    @ApiModelProperty(value = "自增长ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * MAC地址
     */
    @ApiModelProperty(value = "MAC地址")
    private String watchmac;

    /**
     * 起始时间
     */
    @ApiModelProperty(value = "起始时间")
    private Long starttime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    private Long endtime;

    /**
     * 正常数量
     */
    @ApiModelProperty(value = "正常数量")
    private Integer normalcounts;

    /**
     * 超标数量
     */
    @ApiModelProperty(value = "超标数量")
    private Integer abovecounts;

    /**
     * 平均值
     */
    @ApiModelProperty(value = "平均值")
    private Double avgvalue;

    /**
     * 百分比
     */
    @ApiModelProperty(value = "百分比")
    private Double percent;

    /**
     * 睡眠状态 0=未睡 1=已睡
     */
    @ApiModelProperty(value = "睡眠状态 0=未睡 1=已睡")
    private Integer status;

    /**
     * 重试次数
     */
    @ApiModelProperty(value = "重试次数")
    private Integer trycount;

    /**
     * 数据状态 0=未完成 1=已完成 -1=失败
     */
    @ApiModelProperty(value = "数据状态 0=未完成 1=已完成 -1=失败")
    private Integer datastatus;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWatchmac() {
        return watchmac;
    }

    public void setWatchmac(String watchmac) {
        this.watchmac = watchmac;
    }

    public Long getStarttime() {
        return starttime;
    }

    public void setStarttime(Long starttime) {
        this.starttime = starttime;
    }

    public Long getEndtime() {
        return endtime;
    }

    public void setEndtime(Long endtime) {
        this.endtime = endtime;
    }

    public Integer getNormalcounts() {
        return normalcounts;
    }

    public void setNormalcounts(Integer normalcounts) {
        this.normalcounts = normalcounts;
    }

    public Integer getAbovecounts() {
        return abovecounts;
    }

    public void setAbovecounts(Integer abovecounts) {
        this.abovecounts = abovecounts;
    }

    public Double getAvgvalue() {
        return avgvalue;
    }

    public void setAvgvalue(Double avgvalue) {
        this.avgvalue = avgvalue;
    }

    public Double getPercent() {
        return percent;
    }

    public void setPercent(Double percent) {
        this.percent = percent;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getTrycount() {
        return trycount;
    }

    public void setTrycount(Integer trycount) {
        this.trycount = trycount;
    }

    public Integer getDatastatus() {
        return datastatus;
    }

    public void setDatastatus(Integer datastatus) {
        this.datastatus = datastatus;
    }

    @Override
    public String toString() {
        return "IotSleepObserver{" +
                "id=" + id +
                ", watchmac=" + watchmac +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", normalcounts=" + normalcounts +
                ", abovecounts=" + abovecounts +
                ", avgvalue=" + avgvalue +
                ", percent=" + percent +
                ", status=" + status +
                ", trycount=" + trycount +
                ", datastatus=" + datastatus +
                "}";
    }
}
